package com.app.aclass;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

/**
 * @author: Administrator
 * @date: 2023/1/6
 * @Description:
 */
public class HistoryAdapter extends BaseQuickAdapter<HistoryBean, BaseViewHolder> {
    public HistoryAdapter(int layoutResId, @Nullable List<HistoryBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, HistoryBean historyBean) {
        baseViewHolder
                .setText(R.id.name_tv,historyBean.getName())
                .setText(R.id.sex_tv,historyBean.getSex())
                .setText(R.id.number_tv,historyBean.getNumber())
                .setText(R.id.projectName_tv,historyBean.getProjectName())
                .setText(R.id.projectUserName_tv,historyBean.getProjectUserName())
                .setText(R.id.time_tv,historyBean.getTime());
    }
}
